
<a href="{% url 'blog:edit_page' 0 %}">新文章</a></br></br></br>

<form action="{% url 'blog:search_action' %} "method="post">
   {% csrf_token %}
    <label>
   <input type="search" name="content" placeholder="请输入内容" >
    </label>
<input type="submit"  value="搜索" >
</form>

{% for article in articles %}
<table class="table table-striped" id="div1"
       style=" white-space:nowrap;overflow:hidden;text-overflow: ellipsis;
       table-layout:fixed;word-wrap:break-word;">
<tr>
<td width="200px"> {{ article.title }}</td>
<td width="600px">{{ article.content }}</td>
<td width="200px"><a href="{% url 'blog:edit_page' article.id %}">修改文章</a></td>
<td width="200px"><a href="{% url 'blog:delete' article.id %}">删除文章</a></td>
</tr>
</table></br>
{%endfor%}


